package com.android.lyricshow.ui;

import com.android.lyricshow.R;

import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

public class BaseTitleBarFragment extends Fragment {
	
	protected View sRootView	= null;
	
	protected Button sSettingBtn= null;
	
	protected Button sBackBtn	= null;
	
	protected TextView sTitle	= null;
	
	protected Context sContext	= null;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		sContext = getActivity().getBaseContext();
	}
	
	@Override    
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

		sRootView	= inflater.inflate(R.layout.all_list, null);
		
		sTitle		= (TextView)sRootView.findViewById(R.id.title_bar_text);
		sSettingBtn	= (Button)sRootView.findViewById(R.id.title_bar_setting);
		sBackBtn	= (Button)sRootView.findViewById(R.id.title_bar_back);
		
		return sRootView;
	}
	
	public void onBackKey(){
		
	}
}
